/**
 * 神州信息(2012)
 */
package net.abbp.report.designer.eform.menu;

import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;

import net.abbp.engine.ui.model.component.Label;
import net.abbp.engine.ui.model.component.Select;
import net.abbp.engine.ui.model.component.Text;
import net.abbp.report.view.cell.editor.CellEditorManager;

/**
 * 电子表单设计器背景菜单
 * 
 * @version 1.0
 * @author <a herf="lexloo@gmail.com">lexloo</a>
 * @since ABBP 1.0
 * 
 *        <pre>
 * 历史：
 *      建立: Aug 1, 2012 lexloo
 * </pre>
 */
public class ContextMenu extends JPopupMenu {
    public ContextMenu() {
        CellEditorManager manager = CellEditorManager.INSTANCE;

        this.add(new JMenuItem(manager.getCellAction(Label.class)));
        this.add(new JMenuItem(manager.getCellAction(Text.class)));
        this.add(new JMenuItem(manager.getCellAction(Select.class)));
    }
}
